package com.yyq.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yyq.eduservice.entity.EduCourse;
import com.yyq.eduservice.entity.frontVo.courseFrontVo;
import com.yyq.eduservice.entity.frontVo.courseInfoVo;
import com.yyq.eduservice.entity.vo.CourseInfo;
import com.yyq.eduservice.entity.vo.CourseInfoPublish;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author yyq
 * @since 2021-04-15
 */
public interface EduCourseService extends IService<EduCourse> {


    String addcourse(CourseInfo courseInfo);

    CourseInfo getCourseInfoById(String courseId);

    void updateCourseInfo(CourseInfo courseInfo);

    CourseInfoPublish publisCourseInfo(String id);

    void deleteAllInfo(String courseId);


    Map getCourseFrontPage(Page<EduCourse> pages, courseFrontVo courseFrontVo);

    courseInfoVo getCourseFrontInfo(String courseId);

    List<EduCourse> searchCourse(String search);
}
